function checkToken(datas) {
    if (datas.resMsg == undefined&&datas.result == undefined)
        datas = JSON.parse(datas);
    if (datas.code == 401 || datas.code == 402 || datas.code == 403) {
        localStorage.clear();
        sessionStorage.clear();
        window.location.href='index.html';
    }
}